package com.mobis.qa.Controller;

import com.mobis.qa.client.LabelClient;
import entity.Result;
import entity.StatusCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/problem")
public class ProblemController {

    @Autowired
    private LabelClient labelClient;  //因为没有实现类，所以会报错，这个IDEA检查的，不用管


    @RequestMapping(value = "/label/{labelid}")
    public Result findLabelById(@PathVariable String labelid ){
        System.out.println("进入controller");
        System.out.println(labelid);
        return  labelClient.findById(labelid);
    }
}
